#!/bin/bash
# Job yaml can send below ENVIRONMENT VARIABLES to me
# - bad_job_id
# - error_id
# END ENVIRONMENT VARIABLES

. $LKP_SRC/lib/debug.sh
. $LKP_SRC/distro/common
. $LKP_SRC/lib/http.sh
. $LKP_SRC/lib/upload.sh
. $LKP_SRC/lib/job.sh
load_job_vars SCHED_HOST DATA_API_PORT

check_vars()
{
	[ -n "$bad_job_id" ]		|| die "bad_job_id is empty"
	[ -n "$error_id" ]		|| die "error_id is empty"
}


env SCHED_HOST=$SCHED_HOST DATA_API_PORT=$DATA_API_PORT python3 $LKP_SRC/programs/bisect-py/run_bisect
